package com.kancy.vip.pattern.factory.abstractfactory;

import com.kancy.vip.pattern.factory.Computer;
import com.kancy.vip.pattern.factory.Phone;
import com.kancy.vip.pattern.factory.products.DellComputer;
import com.kancy.vip.pattern.factory.products.HuaWeiPhone;
import com.kancy.vip.pattern.factory.products.LenoveComputer;
import com.kancy.vip.pattern.factory.products.SanXingPhone;

/**
 * 该工厂在A工厂基础是收购了电脑工厂
 * 扩展A工厂
 */
public class BProductFactory extends AProductFactory implements ComputerFactory{
    @Override
    public Computer createDell() {
        return new DellComputer();
    }

    @Override
    public Computer createLenove() {
        return new LenoveComputer();
    }
}
